import requests
from io import BytesIO


def request_get(url) -> BytesIO:
    # 使用requests下载PDF文件内容
    response = requests.get(url)
    # 确保请求成功
    if response.status_code == 200:
        # 将内容存储到BytesIO对象中
        return BytesIO(response.content)


def request_get_2(url) -> bytes:
    # 使用requests下载PDF文件内容
    response = requests.get(url)
    # 确保请求成功
    if response.status_code == 200:
        return response.content
